package com.css.dzj.dzjdzqs.modules.apinventory.entity;

import com.google.common.base.Objects;

import javax.persistence.*;

/**
 * 监管数据项清单
 * @Author WT
 * @Date 2020/7/2
 */
@Entity
@Table(name = "JG_INVENTORY", schema = "DZJJH", catalog = "")
public class JgInventoryEntity {
    //主键
    private String id;
    //行政区划代码
    private String administrativeCode;
    //行政区划地区
    private String administrativeArea;
    //行政区划备用字段
    private String administrativeReserve;
    //行政区划备用字段2
    private String administrativeStan;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "Administrative_Code")
    public String getAdministrativeCode() {
        return administrativeCode;
    }

    public void setAdministrativeCode(String administrativeCode) {
        this.administrativeCode = administrativeCode;
    }

    @Basic
    @Column(name = "Administrative_Area")
    public String getAdministrativeArea() {
        return administrativeArea;
    }

    public void setAdministrativeArea(String administrativeArea) {
        this.administrativeArea = administrativeArea;
    }

    @Basic
    @Column(name = "Administrative_Reserve")
    public String getAdministrativeReserve() {
        return administrativeReserve;
    }

    public void setAdministrativeReserve(String administrativeReserve) {
        this.administrativeReserve = administrativeReserve;
    }

    @Basic
    @Column(name = "Administrative_Stan")
    public String getAdministrativeStan() {
        return administrativeStan;
    }

    public void setAdministrativeStan(String administrativeStan) {
        this.administrativeStan = administrativeStan;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgInventoryEntity that = (JgInventoryEntity) o;
        return Objects.equal(id, that.id) &&
                Objects.equal(administrativeCode, that.administrativeCode) &&
                Objects.equal(administrativeArea, that.administrativeArea) &&
                Objects.equal(administrativeReserve, that.administrativeReserve) &&
                Objects.equal(administrativeStan, that.administrativeStan);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id, administrativeCode, administrativeArea, administrativeReserve, administrativeStan);
    }
}
